package com.example.dbsample.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_org")
@ApiModel(value = "机构管理",description = "")
//public class SysOrgEntity implements Serializable,Cloneable {
public class SysOrgEntity implements Serializable {

     public static final String[] IGNORe_PROPERTIES = new String[] {
             "createdBy", "createdDate", "updatedBy", "updatedDate"
     };

     private static final long serialVersionUID = 1L;

     /**
      * id
      */
     @ApiModelProperty(name = "id", notes = "")
     private Integer id;
     /**
      * 上级ID
      */
     @ApiModelProperty(name = "上级ID", notes = "")
     private Integer pid;
     /**
      * 机构名称
      */
     @ApiModelProperty(name = "机构名称", notes = "")
     private String name;
     /**
      * 排序
      */
     @ApiModelProperty(name = "排序", notes = "")
     private Integer sort;
     /**
      * 租户ID
      */
     @ApiModelProperty(name = "租户ID", notes = "")
     private Integer tenantId;
     /**
      * 版本号
      */
     @ApiModelProperty(name = "版本号", notes = "")
     private Integer version;
     /**
      * 删除标识  0：正常   1：已删除
      */
     @ApiModelProperty(name = "删除标识 0：正常；1：已删除", notes = "")
     @TableField(value="deleted")
     @TableLogic(value = "0", delval="1")
     private Integer deleted;
     /**
      * 创建者
      */
     @ApiModelProperty(name = "创建者", notes = "")
     @TableField(value="creator", fill = FieldFill.INSERT)
     private Integer creator;
     /**
      * 创建时间
      */
     @ApiModelProperty(name = "创建时间", notes = "")
     @TableField(value="created_time", fill = FieldFill.INSERT)
     private Date createTime;
     /**
      * 更新者
      */
     @ApiModelProperty(name = "更新者", notes = "")
     @TableField(value="updater", fill = FieldFill.INSERT_UPDATE)
     private Integer updater;
     /**
      * 更新时间
      */
     @ApiModelProperty(name = "更新时间", notes = "")
     @TableField(value="updated_time", fill = FieldFill.INSERT_UPDATE)
     private Date updateTime;
}